<template>
  <div class="fitmentDefault">
    <div style="height:50px">
      <el-button type="primary" style="float:left;margin-left:30px;" @click="goback">返回上一级</el-button>
    </div>
    <el-table :data="defaultData" border style="width: 100%">
      <el-table-column prop="user" align="center" label="业主" />
      <el-table-column prop="area" align="center" label="住址" />
      <el-table-column label="图片" align="center">
        <template slot-scope="scope">
          <img src="" alt="图片加载失败">
        </template>
      </el-table-column>
      <el-table-column prop="state" align="center" label="申请状态" />

    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      defaultData: []
    }
  },
  mounted() {
    var data = this.$route.params.data
    if (data == undefined) {
      this.goback()
    } else {
      this.defaultData.push(data)
    }
  },
  methods: {
    // 返回
    goback() {
      this.$router.push({ path: '/management/fitment' })
    }
  }
}
</script>
<style lang="scss" scoped>
.fitmentDefault {
  margin-top: 55px;
}
</style>
